<template>
	<view class="Card">
		<view class="Card_top">
			<view class="titles">
				{{title}}
			</view>
		</view>
		<view class="Card_bottom">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default{
		props: {
			title: {
				type: String,
				default: '',
				required: true
			},
		},
		data(){
			return{
				
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss" scoped>
	.Card{
		width: 702rpx;
		border-radius: 16rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		overflow: hidden;
		margin-bottom: 20rpx;
		padding: 0 24rpx;
		background-color: #ffffff;
		.Card_top{
			width: 100%;
			background: linear-gradient(180deg,#f3fafa, #ffffff);
			border-radius: 16rpx 16rpx 0rpx 0rpx;
			height: 108rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			border-bottom:  1rpx solid #e9e9e9;
			.titles{
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC-Bold;
				font-weight: 700;
				text-align: center;
				color: #333333;
			}
			
		}
		.Card_bottom{
			width: 100%;
			border-radius: 0 0 16rpx 16rpx;
		}
	}
</style>